package com.itheima.aduit.service;

import org.activiti.engine.repository.ProcessDefinition;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

/**
 * @author qiankaofei
 * @version 1.0
 * @date 2020/12/19 17:46
 */
public interface ProcessService {
    /**
     * 流程上传
     */
    void deployProcess(MultipartFile file,String companyId) throws IOException;

    /**
     * 查询所有的流程定义
     */
    List<ProcessDefinition> definitionList(String companyId);

    /**
     * 设置流程的挂起与激活
     */
    void setSuspendProcess(String processKey, String companyId);
}
